package _24;

public class JzZh {
    public static void main(String[] args) {
        String x = "1100101";
        System.out.println("二进制转换成十进制对应的数值是：" + Integer.valueOf(x, 2));
        System.out.println("二进制转换成八进制对应的数值是：" + Integer.toOctalString(Integer.valueOf(x, 2)));
        System.out.println("二进制转换成十六进制对应的数值是：" + Integer.toHexString(Integer.valueOf(x, 2)));
    }
}
